﻿@using IterationLife.Extensions.EasyUI
@using Util.Ui
@model IterationLife.PlatformBackEnd.AppServices.Dtos.FootballTeachings.CourseCategoryDto
@{
    var x = @Html.EasyUi();
}
<div class="divForm">
    <div class="formtitle">课程分类管理</div>
    @using ( x.Form( "form" ).AddClass( "form" ).Action("/FootballTeachings/coursecategory/save").Begin() ) {
        <dl>
            <dt>@Html.LabelFor( t => t.Code)</dt>
            <dd>
                @x.TextBox( t => t.Code)
            </dd>
        </dl>
        <div class="line"></div>
        <dl>
            <dt>@Html.LabelFor( t => t.Name )</dt>
            <dd>
                @x.TextBox( t => t.Name )
            </dd>
        </dl>
        <div class="line"></div>
        <dl>
            <dt>@Html.LabelFor( t => t.Banner )</dt>
            <dd style="width:180px;">
                @Html.Ui().Attachment().SingleEdit(t=>t.Banner,Model.Banner)
            </dd>
        </dl>
        <div class="line"></div>
        <dl>
            <dt>@Html.LabelFor( t => t.SortId )</dt>
            <dd>
                @x.TextBox( t => t.SortId )
            </dd>
        </dl>
        @Html.HiddenFor(t => t.Enabled)
        @Html.HiddenFor( t => t.CreationTime )
        @Html.HiddenFor( t => t.CreatorId )
        @Html.HiddenFor( t => t.LastModificationTime )
        @Html.HiddenFor( t => t.LastModifierId )
        @Html.HiddenFor( t => t.IsDeleted )
        @Html.HiddenFor( t => t.Version )
        @Html.HiddenFor( t => t.Id )
        @Html.AntiForgeryToken()
    }
</div>
<div id="dialogButtons">
    @x.Button( "保 存" ).Icon( "icon-ok" ).Width( 90 ).Submit()
    @x.DialogButton( "关 闭" ).Icon( "icon-cancel" ).Width( 90 ).CloseDialog()
</div>